<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:msds="http://matsadaml.org/msds/v1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" version="1.0" encoding="UTF-8"
		indent="yes" />
	<xsl:strip-space elements="*" />
	<xsl:param name="ProductId">
		P123-4567
	</xsl:param>
	<xsl:template match="@*|node()">
		<xsl:copy>
			<xsl:apply-templates select="@*|node()" />
		</xsl:copy>
	</xsl:template>
	<xsl:template match="msds:product/@id">
		<xsl:attribute name="id">
			<xsl:value-of select="normalize-space($ProductId)" />
		</xsl:attribute>
	</xsl:template>
</xsl:stylesheet>
